package com.woniuxy.microaftersaleserver.customservicemag.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microcommonserver.bean.aftersales_cyx.ConsultGoods;
import com.woniuxy.microcommonserver.bean.aftersales_cyx.CustomService;
import com.woniuxy.microcommonserver.pageHelper.PageRequest;

import java.util.List;


/**
 * 客服人员的服务类
 */
public interface ICustomService {

    /**
     * 添加客服
     * @param customService
     */
    void addCustomerService(CustomService customService);

    /**
     * 修改客服信息
     * @param customService
     */
    void updateCustomService(CustomService customService);

    /**
     * 删除客服信息
     * @param id
     */
    void deleteCustomService(int id);

    /**
     * 分页查询客服人员
     * @param pageRequest
     * @param customService
     * @return
     */
    PageInfo<CustomService> findByPage(PageRequest pageRequest, CustomService customService);

    /**
     * 通过字段查找数据详情
     * @param customService
     * @return
     */
    List<CustomService> findByParams(CustomService customService);
}
